package StateMode.version4;

/**
 * Copyright (C) 2018 北京金日恒升科技有限公司
 * 版权所有。
 * 文件名：Work
 * 功能描述：
 * 创建标识：闫传强
 * 2018/11/29 12:53
 **/
public class Work {

    /**
     * current:现在，最近，流行
     */
    private State current;

    /**
     * 工作初始化为上午上班状态，即上午九点开始上班
     */
    public Work(){
       current=new ForenoonState();
    }

    private double hour;
    private boolean finish;

    public State getCurrent() {
        return current;
    }

    public void setCurrent(State current) {
        this.current = current;
    }

    public double getHour() {
        return hour;
    }

    public void setHour(double hour) {
        this.hour = hour;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }
    public void WriteProgram(){
        current.WriteProgram(this);
    }
}
